package chapter02;

/**
 * 循环的极限
 * 死循环,基本数据类型都有其取值范围,当超出取值范围时,数值将会被截取,例如超出整数最大数时会变成整数类型最小值
 * Created by a on 2017/6/9.
 */
public class Test041 {
    public static void main(String[] args) {
        int end = Integer.MAX_VALUE;
        int start = end -50;
        int count = 0;
        for (int i =start;i<=end;i++){
            count++;
        }
        System.out.println(count);
    }
}
